<div class="previews form">
<?php echo $this->Form->create('Preview' ,array('type' => 'file'));?>
	<fieldset>
		<legend><?php echo __('Editar Avance'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('name');
		echo $this->Form->input('description');
		echo $this->Form->input('route');
		echo $this->Form->input('presentation_id');
		echo $this->Form->input('upload_id');
		echo $this->Form->create('Upload', array('type' => 'file')); 
		echo $this->Form->input('file', array('type' => 'file'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Aceptar')); ?>
</div>

		
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<?php if($this->Session->read('Auth.User.role_id')=='1'): ?>			
		<li><?php echo $this->Form->postLink(__('Borrar'), array('action' => 'delete', $this->Form->value('Preview.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Preview.id'))); ?></li>
		<li><?php echo $this->Html->link(__('Lista de avances'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Lista de presentaciones'), array('controller' => 'presentations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva presentación'), array('controller' => 'presentations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Lista de subidas'), array('controller' => 'uploads', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva subida'), array('controller' => 'uploads', 'action' => 'add')); ?> </li>
		<?php endif; ?>	
		<?php if($this->Session->read('Auth.User.role_id')=='6'): ?>	
			<li><?php echo $this->Html->link(__('Avances'), array('controller' => 'previews', 'action' => 'index')); ?> </li>
		<?php endif; ?>		
	</ul>
</div>
